package interfaces;

/**
 * @classname:Birds
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/28 19:19
 * @version: 0.1
 * @since:1.8
 */
public class Birds extends Animal {
    private String color;

    public Birds() {
    }

    public Birds(String name, int age, String color) {
        super(name, age);
        this.color = color;
    }
    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public void move() {
        System.out.println(this.getName()+"在移动");
    }
    public void fly(){
        System.out.println(this.getName()+"在飞翔");
    }

    public static void main(String[] args) {
        Birds birds = new Birds();
        birds.fly();
        birds.move();
    }
}
